package com.yfux.cling_player.parcelables;

import android.os.Parcel;
import android.os.Parcelable;

public class CastAction implements Parcelable {
    private String currentURI;
    private String currentURIMetaData;
    private String nextURI;
    private String nextURIMetaData;
    private String stop;

    public CastAction() {
        // Default constructor required by Parcelable
    }

    protected CastAction(Parcel in) {
        currentURI = in.readString();
        currentURIMetaData = in.readString();
        nextURI = in.readString();
        nextURIMetaData = in.readString();
    }

    public static final Creator<CastAction> CREATOR = new Creator<CastAction>() {
        @Override
        public CastAction createFromParcel(Parcel in) {
            return new CastAction(in);
        }

        @Override
        public CastAction[] newArray(int size) {
            return new CastAction[size];
        }
    };

    public String getCurrentURI() {
        return currentURI;
    }

    public void setCurrentURI(String currentURI) {
        this.currentURI = currentURI;
    }

    public String getCurrentURIMetaData() {
        return currentURIMetaData;
    }

    public void setCurrentURIMetaData(String currentURIMetaData) {
        this.currentURIMetaData = currentURIMetaData;
    }

    public String getNextURI() {
        return nextURI;
    }

    public void setNextURI(String nextURI) {
        this.nextURI = nextURI;
    }

    public String getNextURIMetaData() {
        return nextURIMetaData;
    }

    public void setNextURIMetaData(String nextURIMetaData) {
        this.nextURIMetaData = nextURIMetaData;
    }

    public String getStop() {
        return stop;
    }

    public void setStop(String stop) {
        this.stop = stop;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        parcel.writeString(currentURI);
        parcel.writeString(currentURIMetaData);
        parcel.writeString(nextURI);
        parcel.writeString(nextURIMetaData);
    }
}